package com.dnjn.happiness.survey.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author Amber
 * @since 2023-10-04
 */
@Getter
@Setter
@TableName("svy_option")
public class Option extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "option_id", type = IdType.ASSIGN_ID)
    private Long optionId;

    private Long questionId;

    private Long imageId;

    /**
     * ABCDEFG
     */
    private String optionLabel;

    private String optionName;

    private Integer ordinal;

    private Long siteId;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;
}
